gtk4.git
10 years agopixelcache: allow widgets to always require cached content
Christian Hergert [Tue, 16 Jun 2015 23:46:24 +0000 (16:46 -0700)]
pixelcache: allow widgets to always require cached content

Some widgets have very expensive drawing paths. So caching the content
can be useful even when not scrolling.

This can help speed up widgets that are part of animation sequences and
thereby go through spurious expose events.

https://bugzilla.gnome.org/show_bug.cgi?id=751082

10 years agoUpdated Hebrew translation
Yosef Or Boczko [Wed, 17 Jun 2015 00:24:12 +0000 (03:24 +0300)]
Updated Hebrew translation

10 years agogdkwindow: avoid updating background pattern if it matches previous
Christian Hergert [Tue, 16 Jun 2015 21:40:09 +0000 (14:40 -0700)]
gdkwindow: avoid updating background pattern if it matches previous

Background patterns are often updated when style changes. In many cases,
the new pattern will match the previous. We can optimize out the
invalidation that will occur upon resetting the same pattern.

10 years agogtkplacessidebar: improve variable name
Carlos Soriano [Tue, 16 Jun 2015 14:54:24 +0000 (16:54 +0200)]
gtkplacessidebar: improve variable name

10 years agogtkplacessidebar: Remove some old comments
Carlos Soriano [Tue, 16 Jun 2015 14:25:33 +0000 (16:25 +0200)]
gtkplacessidebar: Remove some old comments

We didn't made up our minds until now from some of them, and for
the others no progress has been made or bugs reported, so probably
they are fine.

10 years agogtkplacesidebar: use GtkListBox
Carlos Soriano [Wed, 6 May 2015 21:07:17 +0000 (23:07 +0200)]
gtkplacesidebar: use GtkListBox

We were using GTkTreeView in a simple list. Also, as we know,
GtkCellRenderers are not the best way to theme and manipulate
widgets.

So instead use a GtkListBox to modernize the GtkPlacesSidebar,
and in the way clean up some parts of the code (like headings)
which were not used anymore.
Also we don't use a model anymore, since the data is simple
enough to manage it in a subclass of the row itself.

10 years agotheme: decrease list row transition
Carlos Soriano [Mon, 8 Jun 2015 17:01:45 +0000 (19:01 +0200)]
theme: decrease list row transition

It was somewhat annoying given the "trace" of it. Decrease
the time to avoid too much "trace"

10 years agogtkfilechooserwidget: show drop hints on gtkplacessidebar
Carlos Soriano [Sat, 11 Apr 2015 15:36:41 +0000 (17:36 +0200)]
gtkfilechooserwidget: show drop hints on gtkplacessidebar

Now with the API addition on gtkplacessidebar, we can show some
hints for the drop targets.

https://bugzilla.gnome.org/show_bug.cgi?id=747793

10 years agogtkplacessidebar: make insensitive invalid drop targets
Carlos Soriano [Mon, 11 May 2015 17:12:32 +0000 (19:12 +0200)]
gtkplacessidebar: make insensitive invalid drop targets

https://bugzilla.gnome.org/show_bug.cgi?id=747793

10 years agogtkplacessidebar: add new bookmark icon
Carlos Soriano [Sat, 11 Apr 2015 15:46:59 +0000 (17:46 +0200)]
gtkplacessidebar: add new bookmark icon

Following design mockups

https://bugzilla.gnome.org/show_bug.cgi?id=747793

10 years agogtkplacesidebar: remove obsolete drop state
Carlos Soriano [Thu, 11 Jun 2015 16:55:24 +0000 (18:55 +0200)]
gtkplacesidebar: remove obsolete drop state

We didn't use those for some time now.

10 years agogtkplacessidebar: add API for show drop hints
Carlos Soriano [Sat, 11 Apr 2015 15:35:23 +0000 (17:35 +0200)]
gtkplacessidebar: add API for show drop hints

It is convenient to allow applications to show all the drop
targets at once. This improves the user experience with drag
an drop.

The new API allows the application to set the gtkplacessidebar
in a mode where invalid drop targets are insensitive and it
adds a "new bookmark" row. This mode is intended to be set
when the application is aware of a dnd operation and needs to
be stopped kwhen the application is aware that dnd operation
was cancelled or ended in a different part than gtkplacesisdebar.

The context parameter is unused in this patch, but will be
used in next patches when the sidebar will use a GtkListBox.
The reason of being unused now is just convenience.

https://bugzilla.gnome.org/show_bug.cgi?id=747793

10 years agogtkplacessidebar: new bookmark row only at first position
Carlos Soriano [Sat, 11 Apr 2015 11:53:18 +0000 (13:53 +0200)]
gtkplacessidebar: new bookmark row only at first position

Following the new mockups, put the new bookmark row always
in the first position, so it's easier to drop an item.

https://bugzilla.gnome.org/show_bug.cgi?id=747793

10 years agoDeal with events from wrong display
Matthias Clasen [Mon, 15 Jun 2015 23:46:33 +0000 (19:46 -0400)]
Deal with events from wrong display

GtkInspector is opening a separate display connection, which makes
it more likely that gtk_get_current_event() returns an event from
the "wrong" display.

10 years agoGtkMenuButton: Make programmatic toggling work again
Matthias Clasen [Mon, 15 Jun 2015 23:42:47 +0000 (19:42 -0400)]
GtkMenuButton: Make programmatic toggling work again

This was broken in 0796d7b6ff9393746d.

https://bugzilla.gnome.org/show_bug.cgi?id=751018

10 years agoGtkMenuButton: Avoid direct button access
Matthias Clasen [Mon, 15 Jun 2015 22:54:13 +0000 (18:54 -0400)]
GtkMenuButton: Avoid direct button access

We were getting ourselves in trouble by casting touch events
to GdkEventButton and poking directly at their internals. Instead,
use GdkEvent API to get what we need.

This fixes a crash when using the gear menu in epiphany with
touch. The same crash also occurred in testmenubutton.

10 years agogtkoverlay: Fix issues with remove
Alexander Larsson [Mon, 15 Jun 2015 14:32:50 +0000 (16:32 +0200)]
gtkoverlay: Fix issues with remove

The iteration now progresses past a delete, so make sure we iterate
safely. Also, don't chain up if we removed a child.

10 years agotestoverlay: Fix indentation
Alexander Larsson [Mon, 15 Jun 2015 09:00:40 +0000 (11:00 +0200)]
testoverlay: Fix indentation

10 years agotestoverlay: Add test for overlay z ordering
Alexander Larsson [Tue, 9 Jun 2015 08:23:19 +0000 (10:23 +0200)]
testoverlay: Add test for overlay z ordering

https://bugzilla.gnome.org/show_bug.cgi?id=750568

https://bugs.freedesktop.org/show_bug.cgi?id=90917

10 years agotestoverlay: Fix test by using add_pass_through_overlay
Alexander Larsson [Mon, 8 Jun 2015 14:30:40 +0000 (16:30 +0200)]
testoverlay: Fix test by using add_pass_through_overlay

https://bugzilla.gnome.org/show_bug.cgi?id=750568

https://bugs.freedesktop.org/show_bug.cgi?id=90917

10 years agoGtkOverlay: Add support for input pass-through overlays
Alexander Larsson [Tue, 9 Jun 2015 08:26:31 +0000 (10:26 +0200)]
GtkOverlay: Add support for input pass-through overlays

For these widgets we set pass-through on the child window so that
input over these widgets (that are not on a child input window) goes
to the window below the overlay.

https://bugzilla.gnome.org/show_bug.cgi?id=750568

https://bugs.freedesktop.org/show_bug.cgi?id=90917

10 years agooverlay: Add reorder_overlay()
Alexander Larsson [Mon, 8 Jun 2015 14:28:32 +0000 (16:28 +0200)]
overlay: Add reorder_overlay()

This allows you to control the z-ordering of overlay children

https://bugzilla.gnome.org/show_bug.cgi?id=750568

https://bugs.freedesktop.org/show_bug.cgi?id=90917

10 years agogdk: Add gdk_window_set_pass_through
Alexander Larsson [Mon, 8 Jun 2015 13:36:43 +0000 (15:36 +0200)]
gdk: Add gdk_window_set_pass_through

An pass_through window is something you can draw in but does not
affect event handling. Normally if a window has with no event mask set
for a particular event then input events in it go to its parent window
(X11 semantics), whereas if pass_through is enabled the window below
the window will get the event. The later mode is useful when the
window is partially transparent. Note that an pass-through windows can
have child windows that are not pass-through so they can still get events
on some parts.

Semantically, this behaves the same as an regular window with
gdk_window_set_child_input_shapes() called on it (and re-called any
time a child is changed), but its far more efficient and easy to use.

This allows us to fix the testoverlay input stacking test.

https://bugzilla.gnome.org/show_bug.cgi?id=750568

https://bugs.freedesktop.org/show_bug.cgi?id=90917

10 years agotestoverlay: Add new input stacking test
Alexander Larsson [Mon, 8 Jun 2015 13:31:02 +0000 (15:31 +0200)]
testoverlay: Add new input stacking test

In this case we have a bunch of interactive main children
of the overlay, and then a centered overlay that contains both
non-interactive (labels) and interactive (entry) widgets.

This shows off a problem where the non-interactive parts (the labels)
steals input from the overlay main children (breaks button click and
hover effects).

https://bugzilla.gnome.org/show_bug.cgi?id=750568

https://bugs.freedesktop.org/show_bug.cgi?id=90917

10 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 15 Jun 2015 08:55:00 +0000 (08:55 +0000)]
Updated Spanish translation

10 years agoUpdated Greek translation
Dimitris Spingos [Mon, 15 Jun 2015 08:14:00 +0000 (11:14 +0300)]
Updated Greek translation

10 years agostylecontext: Change fallback behavior on state mismatch
Benjamin Otte [Mon, 15 Jun 2015 02:30:50 +0000 (04:30 +0200)]
stylecontext: Change fallback behavior on state mismatch

For functions that take state flags as an argument we need to special
case the situation where the passed in flags don't match the current
state.

Previously we would create a copy of the style info, change its state
and do the lookup from there.

Now that GtkCssNode has replaced style infos, this doesn't work as well
anymore as copying a GtkCssNode is not possible.
However, unike style infos, GtkCssNodes are instant-apply, so we don't
need to copy anymore, we can just change the state of the node.

This causes some invalidations to be queued, but we can take that
performance hit as this is fallback code.

https://bugzilla.redhat.com/show_bug.cgi?id=1228852

10 years agowidget-factory: Make the circular button do something
Matthias Clasen [Mon, 15 Jun 2015 01:37:58 +0000 (21:37 -0400)]
widget-factory: Make the circular button do something

10 years agotestassistant: Remove padding from the filechooser page
Matthias Clasen [Mon, 15 Jun 2015 01:30:01 +0000 (21:30 -0400)]
testassistant: Remove padding from the filechooser page

This tests the new assistant api to remove padding from
pages.

10 years agoGtkAssistant: Add a way to have pages without padding
Matthias Clasen [Mon, 15 Jun 2015 01:29:09 +0000 (21:29 -0400)]
GtkAssistant: Add a way to have pages without padding

This can be useful when embedding complex widgets like
a file chooser as a page.

https://bugzilla.gnome.org/show_bug.cgi?id=750631

10 years agoAdd a filechooser-in-assistant example
Matthias Clasen [Mon, 15 Jun 2015 01:05:49 +0000 (21:05 -0400)]
Add a filechooser-in-assistant example

This is one of the cases where one wants a page without
any padding.

10 years agoGtkAssistant: Redo page margins
Matthias Clasen [Mon, 15 Jun 2015 01:04:15 +0000 (21:04 -0400)]
GtkAssistant: Redo page margins

Instead of having padding outside the notebook containing
all pages, put each page in an extra box and add the padding
there. This is in preparation for allowing pages without
padding.

10 years agoassistant: Drop hardcoded padding
Matthias Clasen [Fri, 12 Jun 2015 10:35:23 +0000 (06:35 -0400)]
assistant: Drop hardcoded padding

This means the pages themselves will be responsible for setting
suitable padding.

https://bugzilla.gnome.org/show_bug.cgi?id=750631

10 years agoFixes to Catalan translation
Jordi Mas [Sun, 14 Jun 2015 06:32:03 +0000 (08:32 +0200)]
Fixes to Catalan translation

10 years agoOnly build testfontchooserdialog on linux
Matthias Clasen [Sun, 14 Jun 2015 03:00:41 +0000 (23:00 -0400)]
Only build testfontchooserdialog on linux

We are using this to test pango functionality that
uses fontconfig apis, so this doesn't build on OS X
or Windows anymore.

https://bugzilla.gnome.org/show_bug.cgi?id=750892

10 years agocolor editor: make popups toggleable
Matthias Clasen [Sun, 14 Jun 2015 02:32:05 +0000 (22:32 -0400)]
color editor: make popups toggleable

The popups on the color editor are somewhat hard to get rid of.
Arrange things so that clicking the same control again dismisses
the current popup.

10 years agoDon't show a menu on the color editor swatch
Matthias Clasen [Sun, 14 Jun 2015 01:57:07 +0000 (21:57 -0400)]
Don't show a menu on the color editor swatch

There's nothing to customize here, so no need to show a menu.

10 years agoAdd a way to avoid menu on color swatches
Matthias Clasen [Sun, 14 Jun 2015 01:56:41 +0000 (21:56 -0400)]
Add a way to avoid menu on color swatches

10 years agoAvoid uninitialized variables
Matthias Clasen [Sat, 13 Jun 2015 21:57:19 +0000 (17:57 -0400)]
Avoid uninitialized variables

clang complains that these may be used uninitialized.

10 years agoentry: Drop an unused variable
Matthias Clasen [Sat, 13 Jun 2015 21:57:09 +0000 (17:57 -0400)]
entry: Drop an unused variable

10 years agoDrop an unused variable
Matthias Clasen [Sat, 13 Jun 2015 21:56:55 +0000 (17:56 -0400)]
Drop an unused variable

10 years agoRemove unused variables
Matthias Clasen [Sat, 13 Jun 2015 21:49:54 +0000 (17:49 -0400)]
Remove unused variables

10 years agoEnsure a variable is initialized
Matthias Clasen [Sat, 13 Jun 2015 21:49:20 +0000 (17:49 -0400)]
Ensure a variable is initialized

clang complained about transient_for being used uninitialized.

10 years agoRemove an unused variable
Matthias Clasen [Sat, 13 Jun 2015 21:49:06 +0000 (17:49 -0400)]
Remove an unused variable

10 years agobroadway: Avoid compiler warnings
Matthias Clasen [Sat, 13 Jun 2015 21:47:56 +0000 (17:47 -0400)]
broadway: Avoid compiler warnings

clang doesn't like self-assignment.

10 years agoGtkColorEditor: Remove old todo
Matthias Clasen [Sat, 13 Jun 2015 20:57:32 +0000 (16:57 -0400)]
GtkColorEditor: Remove old todo

Most of this is done, and the rest will not happen because
of this note.

10 years agowidget-factory: More popover examples
Matthias Clasen [Sat, 13 Jun 2015 17:45:57 +0000 (13:45 -0400)]
widget-factory: More popover examples

Add an example for text input in a popover. This leads to nested
popovers with touch selection, and does not currently work.

10 years agowidget-factory: Add horizontally linked entries
Matthias Clasen [Sat, 13 Jun 2015 16:02:33 +0000 (12:02 -0400)]
widget-factory: Add horizontally linked entries

It happens in some places, so artists need an example to
make it look good.

10 years agoFix 'void function should not return void expression' warning for clang
Ting-Wei Lan [Sat, 13 Jun 2015 05:45:57 +0000 (13:45 +0800)]
Fix 'void function should not return void expression' warning for clang

https://bugzilla.gnome.org/show_bug.cgi?id=750888

10 years agoFix return value error in _gtk_text_handle_set_direction
Ting-Wei Lan [Sat, 13 Jun 2015 05:44:24 +0000 (13:44 +0800)]
Fix return value error in _gtk_text_handle_set_direction

https://bugzilla.gnome.org/show_bug.cgi?id=750888

10 years agoRedo font map support in GtkFontChooser
Matthias Clasen [Sat, 13 Jun 2015 03:55:30 +0000 (23:55 -0400)]
Redo font map support in GtkFontChooser

We can't add properties to the interface, since it breaks
3rd party implementations of the GtkFontChooser interface.
These exist, for example in gnumeric.

So, instead of a new property, add getter/setter vfuncs.

10 years agofontchooser: Don't cause "row-changed" signal in cell data func
Benjamin Otte [Fri, 12 Jun 2015 19:23:34 +0000 (21:23 +0200)]
fontchooser: Don't cause "row-changed" signal in cell data func

The font chooser delays creating the font description from the font face
as long as possible (it's slow). Because we use fixed height mode, we
only have to create font descriptions for rows we are actually going to
show.

This was achieved by looking at the font description column and if it
was NULL, we created a font description and gtk_list_stiore_set() it.
Unfortunately this caused a "row-changed" signal to be emitted and this
emission could happen during the cell data func.
And that caused infinite loops with accessibility when you were unlucky.

This change replaces the NULL font description with an empty one and
instead of setting the correct font description, we
pango_font_description_merge() it in. This way, the list store doesn't
change and no signals are emitted.

https://bugzilla.redhat.com/show_bug.cgi?id=1197267

10 years agopopover: Avoid hiding modal popovers if another popover is taking focus
Carlos Garnacho [Fri, 12 Jun 2015 13:05:33 +0000 (15:05 +0200)]
popover: Avoid hiding modal popovers if another popover is taking focus

Due to popover modality itself, there's quite high chances the popover
stealing focus has been triggered from within, so stay friendly to it.
Hiding the popover here will only hide the grabbing popover too if this
happens.

https://bugzilla.gnome.org/show_bug.cgi?id=750741

10 years agowindow: Avoid rising the window of already shown popovers
Carlos Garnacho [Fri, 12 Jun 2015 13:03:41 +0000 (15:03 +0200)]
window: Avoid rising the window of already shown popovers

This breaks stacking, as popovers are repositioned sort of frequently
(even more after show/hide animations).

https://bugzilla.gnome.org/show_bug.cgi?id=750741

10 years agoreftests: fix style class syntax in CSS file
Cosimo Cecchi [Thu, 11 Jun 2015 03:21:57 +0000 (20:21 -0700)]
reftests: fix style class syntax in CSS file

Fixes reftests.

https://bugzilla.gnome.org/show_bug.cgi?id=750605

10 years agotestsuite: add a test for non-square symbolic icons
Cosimo Cecchi [Thu, 11 Jun 2015 03:52:14 +0000 (20:52 -0700)]
testsuite: add a test for non-square symbolic icons

To verify the previous fix.

https://bugzilla.gnome.org/show_bug.cgi?id=750605

10 years agoicontheme: don't modify symbolic SVG dimensions when recoloring
Cosimo Cecchi [Mon, 8 Jun 2015 23:35:31 +0000 (16:35 -0700)]
icontheme: don't modify symbolic SVG dimensions when recoloring

When recoloring symbolic SVG, do not modify the original width and
height of the passed-in file; the function later will scale the image
through gdk_pixbuf_new_from_stream_at_scale(), but we should still
use the original size to create the proxy SVG, or the image will
possibly be doubly-resized or blurry.

https://bugzilla.gnome.org/show_bug.cgi?id=750605

10 years agorecent chooser: Make it expand
Matthias Clasen [Fri, 12 Jun 2015 12:26:18 +0000 (08:26 -0400)]
recent chooser: Make it expand

It is expected that the list fills the available space.

https://bugzilla.gnome.org/show_bug.cgi?id=750690

10 years agoentry: Ensure we unset the magnifier widget on ::destroy
Carlos Garnacho [Fri, 12 Jun 2015 11:30:34 +0000 (13:30 +0200)]
entry: Ensure we unset the magnifier widget on ::destroy

Otherwise there's dangling signal handlers which cause warnings
at the time we attempt to disconnect these.

10 years agotextview: Set handles' mode to "none" if showing the bubble
Carlos Garnacho [Fri, 12 Jun 2015 11:04:45 +0000 (13:04 +0200)]
textview: Set handles' mode to "none" if showing the bubble

show_or_hide_handles() tries to disable visibility when the popover is
shown, although it triggers a bit late, and lets the handles flash briefly
if both popover and handles try to show at the same time (eg. when
pressing on the selection of a previously unfocused textview, the handles
were previously hidden, so they try to show again on focus in).

10 years agotextview: Perform tougher handle visibility checks after hiding the popover
Carlos Garnacho [Fri, 12 Jun 2015 10:45:03 +0000 (12:45 +0200)]
textview: Perform tougher handle visibility checks after hiding the popover

The handles might fall outside the visible area, and shouldn't be shown
then. Just call gtk_text_view_update_handles() which will perform these
checks, and keep the handle conveniently hidden.

This was leading to unexpectedly visible handles (and in the
wrong/previous position, the handle code doesn't relocate the widget
it's about to hide) when "select all" was selected in the popover on
a textview needing scrollbars.
and extending the selection beyond the view above and/or below.

10 years agopopover: Be lenient wrt visibility of popovers too close to widget borders
Carlos Garnacho [Fri, 12 Jun 2015 09:59:47 +0000 (11:59 +0200)]
popover: Be lenient wrt visibility of popovers too close to widget borders

The check used to hide the popover if the pointed area fell partly out of
the widget allocation, textviews now can trigger that with text selections
too close to the visible edge, as a small extra area around is now reserved.

The check has been changed to only hide the popover if the pointed area
falls completely outside the widget allocation.

10 years agotexthandle: Remove knowledge about window borders
Carlos Garnacho [Thu, 11 Jun 2015 15:10:54 +0000 (17:10 +0200)]
texthandle: Remove knowledge about window borders

We need to expand beyond these if necessary, so don't artificially
limit things here.

10 years agowindow: Allow more space at edges for popovers
Carlos Garnacho [Wed, 10 Jun 2015 19:02:34 +0000 (21:02 +0200)]
window: Allow more space at edges for popovers

We're clamping to the visible window edge, which misplaces text handles.

10 years agoentry: Set text direction information on text handles
Carlos Garnacho [Thu, 11 Jun 2015 14:18:02 +0000 (16:18 +0200)]
entry: Set text direction information on text handles

This way the handles point to the right side on the presence of rtl/ltr
text.

10 years agotextview: set text direction information on text handles
Carlos Garnacho [Wed, 10 Jun 2015 18:53:12 +0000 (20:53 +0200)]
textview: set text direction information on text handles

This makes them point to the correct place, given the theme supports
this.

10 years agotexthandle: Handle ltr/rtl positioning
Carlos Garnacho [Wed, 10 Jun 2015 18:52:02 +0000 (20:52 +0200)]
texthandle: Handle ltr/rtl positioning

This setting is per handle, as is dependent on the selected text, rather
than the locale.

10 years agoAdwaita: support rtl on text handles
Carlos Garnacho [Wed, 10 Jun 2015 18:54:09 +0000 (20:54 +0200)]
Adwaita: support rtl on text handles

Just use the opposite variant for the opposite LTR side.

10 years agotexthandles: Move start handle to bottom
Carlos Garnacho [Wed, 10 Jun 2015 17:54:34 +0000 (19:54 +0200)]
texthandles: Move start handle to bottom

The asset is going to change to point upwards, so physically place
the handle below the text position.

https://bugzilla.gnome.org/show_bug.cgi?id=750692

10 years agoAdwaita: update text selection handles
Jakub Steiner [Wed, 10 Jun 2015 17:36:48 +0000 (19:36 +0200)]
Adwaita: update text selection handles

- we'll put both handles to teh bottom
- renamed top, bottom to start and end. will be easier
  for rtl too.

https://bugzilla.gnome.org/show_bug.cgi?id=750692

10 years agodocs: Fix some minor typos in comments in GtkWidget
Piotr Drąg [Thu, 11 Jun 2015 13:50:15 +0000 (15:50 +0200)]
docs: Fix some minor typos in comments in GtkWidget

10 years agosettings: Fix the type annotation for color-hash
Emmanuele Bassi [Thu, 11 Jun 2015 10:43:35 +0000 (11:43 +0100)]
settings: Fix the type annotation for color-hash

The (element-type) annotation cannot be used with properties that return
container types like GHashTable; we need to use the (type) annotation.

https://bugzilla.gnome.org/show_bug.cgi?id=750489

10 years agobuilder: Skip introspecting lookup_callback_symbol()
Emmanuele Bassi [Thu, 11 Jun 2015 10:40:37 +0000 (11:40 +0100)]
builder: Skip introspecting lookup_callback_symbol()

Opaque function pointers as return values are not really usable in high
level languages, even via introspection.

10 years agodocs: Fix annotation for GtkGLArea::resize signal
Emmanuele Bassi [Thu, 11 Jun 2015 10:39:38 +0000 (11:39 +0100)]
docs: Fix annotation for GtkGLArea::resize signal

We need to document all arguments for the signal, for both gtk-doc and
introspection.

10 years agodocs: Improve deprecation notices for GtkSettings
Emmanuele Bassi [Wed, 10 Jun 2015 16:16:41 +0000 (17:16 +0100)]
docs: Improve deprecation notices for GtkSettings

The button and menu item icons settings are deprecated; application
developers should control whether or not a widget should show an icon,
using the existing API.

https://bugzilla.gnome.org/show_bug.cgi?id=750718

10 years agodocs: Improve deprecation notices for GtkMisc
Emmanuele Bassi [Wed, 10 Jun 2015 16:12:02 +0000 (17:12 +0100)]
docs: Improve deprecation notices for GtkMisc

Point to the replacement properties and functions.

https://bugzilla.gnome.org/show_bug.cgi?id=750718

10 years agodocs: Improve deprecation notice for rules-hint property
Emmanuele Bassi [Wed, 10 Jun 2015 16:07:41 +0000 (17:07 +0100)]
docs: Improve deprecation notice for rules-hint property

Specify that the theme is wholly in control.

https://bugzilla.gnome.org/show_bug.cgi?id=750718

10 years agodocs: Improve deprecation notices for GtkImageMenuItem properties
Emmanuele Bassi [Wed, 10 Jun 2015 16:06:46 +0000 (17:06 +0100)]
docs: Improve deprecation notices for GtkImageMenuItem properties

Should help porting code away from the deprecated GtkImageMenuItem
class.

https://bugzilla.gnome.org/show_bug.cgi?id=750718

10 years agodocs: Add deprecation notices for GtkAlignment properties
Emmanuele Bassi [Wed, 10 Jun 2015 16:00:56 +0000 (17:00 +0100)]
docs: Add deprecation notices for GtkAlignment properties

We want people to port their code away from deprecated classes, and this
helps finding a replacement.

https://bugzilla.gnome.org/show_bug.cgi?id=750718

10 years agogtklistboxrow: propagate in the draw vfunc
Carlos Soriano [Wed, 10 Jun 2015 15:42:10 +0000 (17:42 +0200)]
gtklistboxrow: propagate in the draw vfunc

So objects connected by g_signal_connect_after actually get
the signal.
This was causing an issue in the dnd highlight, since there
a cairo rectangle is draw using g_signal_connect_after on the draw
signal.

10 years agoentry: Select word on double tap
Matthias Clasen [Wed, 10 Jun 2015 10:20:18 +0000 (06:20 -0400)]
entry: Select word on double tap

The same approach as taken for GtkTextView in the previous commit.

10 years agotext view: Select word on double tap
Matthias Clasen [Wed, 10 Jun 2015 03:29:47 +0000 (23:29 -0400)]
text view: Select word on double tap

This is an initial attempt at implementing double-tap selection.

10 years agogtk-demo: Make hypertext demo work with touch
Matthias Clasen [Wed, 10 Jun 2015 02:29:26 +0000 (22:29 -0400)]
gtk-demo: Make hypertext demo work with touch

Make tapping on the links work.

10 years agowayland: Improve guessing of popup placement for detached popup menus
Jonas Ådahl [Fri, 5 Jun 2015 05:29:22 +0000 (13:29 +0800)]
wayland: Improve guessing of popup placement for detached popup menus

If a menu was not attached to any widget, we try to calculate its
position given where the grabbed pointer is and what window has its
focus. Previously we failed to do so if a "transfer window" was used
for the grab, and this patch adds a code path that, if the menu window
itself didn't have the grab, look for the transfer window and get the
grab device from there.

https://bugzilla.gnome.org/show_bug.cgi?id=748951

10 years agowayland: Don't try to guess the popup menu placement when it was set
Jonas Ådahl [Fri, 5 Jun 2015 05:35:21 +0000 (13:35 +0800)]
wayland: Don't try to guess the popup menu placement when it was set

If a position was already explicitly set, don't try to guess the
position of popup menus by looking at the pointer position, just use
the set coordinates.

https://bugzilla.gnome.org/show_bug.cgi?id=748951

10 years agowayland: Position popups relative to the parent surface
Jonas Ådahl [Fri, 22 May 2015 08:39:31 +0000 (16:39 +0800)]
wayland: Position popups relative to the parent surface

According to the xdg-shell protocol specification the (x, y) coordinates
passed when creating a popup surface is relative to top left corner of
the parent surface, but prior to this patch, if the parent surface
was an xdg_surface, we'd position it relative to top left corner of the
window geometry of that xdg_surface.

https://bugzilla.gnome.org/show_bug.cgi?id=749717

10 years agoGtkTextHandle: Improve handle positioning
Matthias Clasen [Wed, 10 Jun 2015 01:19:17 +0000 (21:19 -0400)]
GtkTextHandle: Improve handle positioning

When we are close the window edge, we need to shrink the 'invisible
border' around the handle to avoid mispositioning it. A fiddly
calculation, but it works.

10 years agoGtkTextHandle: drop non-implemented functions
Matthias Clasen [Tue, 9 Jun 2015 23:07:34 +0000 (19:07 -0400)]
GtkTextHandle: drop non-implemented functions

10 years agoGtkTextHandle: position handles properly
Matthias Clasen [Tue, 9 Jun 2015 21:06:27 +0000 (17:06 -0400)]
GtkTextHandle: position handles properly

Move the handles so that the asymmetric assets align with the
start/end of the selection.

10 years agowidget-factory: Improve touch selection example
Matthias Clasen [Tue, 9 Jun 2015 19:50:50 +0000 (15:50 -0400)]
widget-factory: Improve touch selection example

Make the check buttons not take focus on click, so the popover
stays open.

10 years agoentry: Make touch selection work with mouse
Matthias Clasen [Tue, 9 Jun 2015 19:50:30 +0000 (15:50 -0400)]
entry: Make touch selection work with mouse

The buttons on the popover where stealing the focus from the text
view on click, causing the popover to be dismissed before the action
was taken. Fix this by making the buttons not take focus on click.

10 years agotext view: Make touch selection work with mouse
Matthias Clasen [Tue, 9 Jun 2015 19:49:10 +0000 (15:49 -0400)]
text view: Make touch selection work with mouse

The buttons on the popover where stealing the focus from the text
view on click, causing the popover to be dismissed before the action
was taken. Fix this by making the buttons not take focus on click.

10 years agoadwaita: style tweaks to touch selections
Jakub Steiner [Tue, 9 Jun 2015 13:02:39 +0000 (15:02 +0200)]
adwaita: style tweaks to touch selections

- use dark theme assets for the checkboxes and radios
- darken the popover for legibility (white bg/black text is
  really the most problematic background to have).

unfortunatley in terms of SCSS structure this is further digging us into the
hole of specificity. It would be much nicer to set the .osd class on the popover
and have everything just work. I'm sure we'll end up using OSD styled popovers
outside the touch context.

https://bugzilla.gnome.org/show_bug.cgi?id=750396

10 years agoUpdate Catalan translation
Jordi Mas [Tue, 9 Jun 2015 06:07:05 +0000 (08:07 +0200)]
Update Catalan translation

10 years agoentry: Avoid criticals
Matthias Clasen [Mon, 8 Jun 2015 23:04:06 +0000 (19:04 -0400)]
entry: Avoid criticals

After the recent changes, we could end up calling
gtk_entry_update_handles in cases where the text_handle
has not be created (e.g. when dragging text from an entry).
Avoid that.

10 years agowidget: Clarify docs on gtk_widget_set_double_buffered()
Benjamin Otte [Mon, 8 Jun 2015 18:28:10 +0000 (20:28 +0200)]
widget: Clarify docs on gtk_widget_set_double_buffered()

Also make them more scary so people really really don't use it as a
random knob when trying to make things go fast.

//bugzilla.gnome.org/show_bug.cgi?id=750505

10 years agomain: Push the current event on the stack before we start needing it
Rui Matos [Fri, 5 Jun 2015 17:21:40 +0000 (19:21 +0200)]
main: Push the current event on the stack before we start needing it

The changes in commit 13e22e20300b7312e52bba7d077fc7e231695fc1 made
_gtk_window_check_handle_wm_event() indirectly depend on
gtk_get_current_event_time() which relies on the current event being
available on the current_events stack.

Since the current event is only pushed on the stack afterwards we get
an invalid timestamp which breaks ewmh window moving.

This fixes the issue by pushing the current event before we start
relying on it being there in gtk_main_do_event() and, as a byproduct,
also fixes a potential memory leak when we have a rewritten event and
return early due to _gtk_window_check_handle_wm_event() being TRUE.

https://bugzilla.gnome.org/show_bug.cgi?id=750384

10 years agoentry: Always clear handles for mouse interaction
Matthias Clasen [Mon, 8 Jun 2015 01:52:35 +0000 (21:52 -0400)]
entry: Always clear handles for mouse interaction

There were some cases where we left a handle visible
during mouse interaction, which is a little weird.

10 years agoentry: Move touch selection a little further away
Matthias Clasen [Mon, 8 Jun 2015 01:13:16 +0000 (21:13 -0400)]
entry: Move touch selection a little further away

Otherwise, it looks cramped, and we end up under the finger.

10 years agoentry: Hide popover when touching elsewhere
Matthias Clasen [Mon, 8 Jun 2015 00:41:16 +0000 (20:41 -0400)]
entry: Hide popover when touching elsewhere

Otherwise, the popover becomes 'sticky' and hard-to-dismiss.